/* Black */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-BlackItalic.ttf") format("truetype");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ExtraBold */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-ExtraBoldItalic.ttf") format("truetype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* SemiBold */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-SemiBoldItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-MediumItalic.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Regular */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Light */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* ExtraLight */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-ExtraLightItalic.ttf") format("truetype");
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

/* Thin */
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../font/Poppins-ThinItalic.ttf") format("truetype");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: "Poppins";
    margin: 0;
    padding: 0;
    color: #000000;
    font-size: 1rem;
    font-weight: 400;
}

*[role="button"],
button {
    cursor: pointer;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.d-none {
    display: none !important;
}

.text-active {
    color: #d27e64 !important;
}

.text-white {
    color: #fff !important;
}

.text-black {
    color: #000000 !important;
}

.text-gray {
    color: #696969 !important;
}

.text-gray-100 {
    color: #999999 !important;
}

.text-gray-200 {
    color: #787880 !important;
}

.text-gray-300 {
    color: #868686 !important;
}

.text-brown {
    color: #49454f !important;
}

.text-11 {
    font-size: 11px !important;
}

.text-12 {
    font-size: 12px !important;
}

.text-14 {
    font-size: 14px !important;
}

.text-18 {
    font-size: 18px !important;
}

.text-21 {
    font-size: 21px !important;
}

.text-22 {
    font-size: 22px !important;
}

.text-25 {
    font-size: 25px !important;
}

.text-medium {
    font-weight: 500 !important;
}

.text-bold {
    font-weight: 700 !important;
}

.text-center {
    text-align: center !important;
}

.text-blue-100 {
    color: #0679a4 !important;
}

.text-blue-200 {
    color: #00adee !important;
}

.text-blue-300 {
    color: #dbf4fd !important;
}

.bg-gray {
    background-color: #696969 !important;
}

.bg-gray-100 {
    background-color: #999999 !important;
}

.bg-gray-200 {
    background-color: #787880 !important;
}

.bg-main {
    background-color: #eaf7fc !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-red {
    background-color: #b3261e !important;
}

.bg-yellow {
    background-color: #ffe8a3 !important;
}

.bg-green {
    background-color: #cff7d3 !important;
}

.bg-pink {
    background-color: #f9dedc !important;
}

.bg-blue-100 {
    background-color: #0679a4 !important;
}

.bg-blue-200 {
    background-color: #00adee !important;
}

.bg-blue-300 {
    background-color: #dbf4fd !important;
}

.box-shadow {
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.gap-3 {
    gap: 12px;
}

.gap-5 {
    gap: 20px;
}

.gap-6 {
    gap: 24px;
}

.gap-25 {
    gap: 100px;
}

.gap-73px {
    gap: 73px;
}

p {
    margin: 0;
    line-height: 30px;
}

.white-space-nowrap {
    white-space: nowrap;
}

.button {
    display: flex;
    gap: 8px;
    padding: 6px 8px 6px 16px;
    border: 1px solid #cac4d0;
    border-radius: 8px;
    width: fit-content;
    text-decoration: none;
}

.main-content {
    min-height: 100vh;
}

.sidebar {
    box-shadow: 0px 0px 32px -8px rgba(12, 12, 13, 0.4);
    background-color: #fff;
}

.sidebar-items {
    margin-top: 71px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 19px;
}

.header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
}

.header .header-left {
    display: flex;
    align-items: center;
    gap: 19px;
}

.header .header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    overflow: hidden;
}

.header .avatar img {
    width: 100%;
    height: 100%;
}

.header button {
    border: 1px solid #00adee;
    background: #00adee;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    padding: 8px 35px;
    margin-left: 2rem;
}

main .card {
    padding: 30px;
    background-color: #fff;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    min-width: 279px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main .card .item {
    text-align: center;
    font-weight: 500;
}

main .card .circle {
    padding: 5px 10px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

main .card .bg-item {
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

main .tank-card {
    padding: 43px 39px;
    background-color: #fff;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-form {
    background-color: rgba(120, 120, 128, 0.16);
    border-radius: 50px;
    color: #999999;
}

.search-input input {
    background-color: rgba(120, 120, 128, 0.16);
    border-radius: 50px;
    color: #999999;
}

.search-input input:focus {
    outline: none;
}

.tank-table {
    display: flex;
    gap: 11px;
    flex-direction: column;
    margin-top: 11px;
}

.tank-table .tank-table-header {
    display: flex;
}

.tank-table .tank-table-header div {
    color: #868686;
    font-size: 14px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tank-table .tank-table-column {
    display: flex;
}

.tank-table .tank-table-column div {
    color: #000000;
    font-size: 14px;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tab {
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    width: 815px;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
}

.tab .tab-container {
    width: 815px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.tab .tab-container .tab-content {
    padding: 25px;
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.tab .tab-container .tab-content > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tab .tab-container .tab-footer {
    background-color: #00adee;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}


.crypto-items {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.crypto-items .crypto-item {
    padding: 6px 12px;
    border: 1px solid #49454f;
    color: #49454f;
    font-weight: 500;
    font-size: 12px;
    border-radius: 8px;
}

.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 100;
    padding: 8px 0;
    list-style: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #49454f;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

/* --- Custom Pagination --- */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.page-link,
.arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link {
    width: 45px;
    height: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;

    font-size: 1.25rem;
    font-weight: 600;
}

.arrow-link img {
    height: 32px;
    width: auto;
}

.page-link:not(.disabled):not(.active):hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-link.disabled,
.arrow-link.disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}
.text-danger {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.text-danger::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e53e3e'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e53e3e' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}
.action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.action-btn:hover {
    opacity: 0.7;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.error-message::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e53e3e'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e53e3e' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}
.required {
    color: red;
}

.tab-content > div > div > .text-danger,
.tab-content > div > div > .error-message {
    grid-column: 2 / 3;
    grid-row: 2;
    font-size: 13px;
    color: #b3261e;
}

.disabled-link {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}
.tab-content input,
.tab-content select,
.tab-content textarea {
    padding: 8px 12px;
    border: 1px solid #cac4d0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

.tab-content textarea {
    resize: vertical;
    min-height: 80px;
}

.tab-content {
    flex: 1;
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-scroll-area {
    margin-top: auto;
    margin-bottom: auto;
    overflow-y: auto;
    padding-right: 16px;
}

.tab-content > img,
.tab-content > .tab-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    z-index: 2;
}

.tanks-form-container .form-scroll-area > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 4px 16px;
    margin-bottom: 16px;
}

.tanks-form-container .form-scroll-area > div > label {
    grid-column: 1 / 2;
    text-align: right;
    font-weight: 700;
}

.users-form-container .form-scroll-area > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 4px 16px;
    margin-bottom: 16px;
}

.users-form-container .form-scroll-area > div > label {
    grid-column: 1 / 2;
    text-align: right;
    font-weight: 700;
}

.samples-form-container .form-scroll-area > div:not(.virus-group) {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 4px 16px;
    margin-bottom: 16px;
}

.samples-form-container .form-scroll-area > div > label {
    grid-column: 1 / 2;
    text-align: left;
    font-weight: 500;
}

.form-scroll-area > div > input,
.form-scroll-area > div > select,
.form-scroll-area > div > textarea {
    grid-column: 2 / 3;
}

.form-scroll-area > div > .text-danger,
.form-scroll-area > div > .error-message,
.form-scroll-area > div > .element {
    grid-column: 2 / 3;
    /* grid-row: 2; */
}

.virus-section-title {
    grid-column: 1 / -1;
    margin: 20px 0 10px 0;
    color: #0679a4;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.arrow-link:not(.disabled):hover {
    opacity: 0.7;
}

.arrow-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.selected-data-points {
    width: 100%;
    margin-bottom: 24px;
}
.data-points-title {
    font-size: 22px;
    font-weight: 600;
    color: #49454f;
    margin: 0 0 16px 0;
}

.data-points-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.data-points-label {
    font-size: 14px;
    color: #696969;
}
.data-points-tags .crypto-item {
    background-color: transparent;
    border: 1px solid #787880;
    color: #49454f;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.data-points-tags .crypto-item:hover,
.data-points-tags .crypto-item.active {
    background-color: #00adee;
    color: #fff;
    border-color: #00adee;
}

main#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 40px;
    width: 100%;
    box-sizing: border-box;
}

.data-points-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.data-points-container,
.tank-card {
    width: 100%;
    max-width: 1600px;
}

.tank-card {
    padding: 24px;
}

.action-btn.view-btn {
    background-color: #00aa74;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* padding: 8px; */
    border-radius: 20%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn.view-btn img {
    filter: brightness(0) invert(1);
}

.sortable-header {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
.sortable-header:hover {
    color: #333;
}
.sort-arrows {
    display: inline-flex;
}
.sort-arrows svg {
    width: 14px;
    height: 14px;
}
.sort-arrows .default-sort-icon {
    color: #ccc;
}

.has-tooltip {
    position: relative;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 10;
}

.has-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

.samples-form-container .form-scroll-area > .virus-group {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px dashed #cac4d0;
}

.samples-form-container .virus-group .virus-name-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0679a4;
    margin-bottom: 16px;
    text-align: left;
}

.samples-form-container .virus-group .virus-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.samples-form-container .virus-group .virus-fields > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    row-gap: 4px;
    column-gap: 16px;
}

.samples-form-container .virus-group .virus-fields > div > label {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
}

.samples-form-container .virus-group .virus-fields > div > input,
.samples-form-container .virus-group .virus-fields > div > .form-value-display {
    grid-column: 2 / 3;
}

.samples-form-container .virus-group .virus-fields > div > .text-danger {
    grid-column: 2 / 3;
    grid-row: 2;
}

.form-value-display {
    padding: 8px 12px;
    color: #49454f;
    min-height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.form-value-display {
    padding: 8px 12px;
    color: #49454f;
    min-height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.viruses-form-container .form-scroll-area > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 4px 16px;
    margin-bottom: 16px;
}

.viruses-form-container .form-scroll-area > div > label {
    grid-column: 1 / 2;
    text-align: right;
    font-weight: 700;
}


@media (max-width: 768px) {
    .tab {
        width: 100%;
        z-index: 100;
    }

    .tab .tab-container {
        width: 100%;
    }

    .form-scroll-area > div,
    .tanks-form-container .form-scroll-area > div,
    .users-form-container .form-scroll-area > div,
    .viruses-form-container .form-scroll-area > div {
        display: block;
    }

    .samples-form-container .virus-group .virus-fields > div {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .action-btn,
    .delete-btn {
        width: 25px;
    }

    .menu-dock-icon {
        width: 24px;
        height: 24px;
    }

    .samples-form-container .form-scroll-area > div:not(.virus-group) {
        grid-template-columns: auto;
        display: block;
    }
}